Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rpc.undo and Rpc.redo #457

Merged
merged 4 commits into from
Apr 28, 2020
Merged

Rpc.undo and Rpc.redo #457

merged 4 commits into from
Apr 28, 2020

Conversation

iamdefinitelyahuman
Copy link
Member

What I did

Add rpc.undo and rpc.redo methods. Closes #454

How I did it

  • Rpc._add_to_undo_buffer keeps a record of each transaction, and takes a new snapshot each time a transaction is performed.
  • Rpc.undo and Rpc.redo move through the undo buffer.

How to verify it

Run tests.

@iamdefinitelyahuman iamdefinitelyahuman merged commit 3d810da into master Apr 28, 2020
@iamdefinitelyahuman iamdefinitelyahuman deleted the rpc-undo branch April 28, 2020 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rpc.undo and rpc.redo
1 participant